﻿using System;
using Ninject.Core;
using Example.Common.Presenters;
using Example.Common.Services;
using Ninject.Core.Behavior;

namespace Example.Common.Modules
{
    /// <summary>
    /// Module defining the dependencies used globally in this application
    /// </summary>
    public class GlobalModule : StandardModule
    {
        public override void Load()
        {
            Bind<HelloWorldPresenter>().ToSelf().Using<OnePerRequestBehavior>();
            Bind<HelloWorldService>().ToSelf();
        }
    }
}
